#pragma once
#include <QWidget>
#include <functional>
#include "QStyle"
#include <QRegularExpression>
#include <memory>
#include <iostream>
#include <mutex>
#include <QtNetwork/QNetworkReply>

//刷新qss
extern std::function<void(QWidget *)> refresh;

enum ReqId {
    ID_GET_VERIFY_CODE = 1001,  //获取验证码
    ID_REG_USER = 1002,         //注册用户
};

enum Modules {
    REGISTER_MOD = 0,
};

enum ErrorCodes {
    SUCCESS = 0,
    ERR_JSON = 1, //Json解析失败
    ERR_NETWORK = 2,
};

extern QString gate_url_prefix;